home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ddx-mips.zip / MIPS4000.H < prev    next >
C/C++ Source or Header  |  1992-04-07  |  2KB  |  54 lines

  1. /*
  2.  * $XConsortium$
  3.  *
  4.  * Copyright 1991 MIPS Computer Systems, Inc.
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of MIPS not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  MIPS makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * MIPS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL MIPS
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  */
  23. /* $Header: mips4000.h,v 1.4 92/04/06 21:02:24 dd Exp $ */
  24. #ifndef __DDX_MIPS4000_H
  25. #define    __DDX_MIPS4000_H
  26.  
  27. /* mmap information */
  28. #define    RS4000_FBMEM_PHYSADDR    0x40000000
  29. #define    RS4000_FBMEM_MMAPOFF    0x00000000
  30. #define    RS4000_FBMEM_MMAPSIZE    (2048 * 1024)
  31. #define    RS4000_FBREG_PHYSADDR    0x60000000
  32. #define    RS4000_FBREG_MMAPOFF    0x10000000
  33. #define    RS4000_FBREG_MMAPSIZE    (2048 * 1024)
  34.  
  35. /* default frame buffer resolution */
  36. #define    RS4000_VISW    1280    /* visible pixels per scan line */
  37. #define    RS4000_VISH    1024    /* scan lines */
  38. #define    RS4000_BPSL    1280    /* bytes per scan line (as mapped) */
  39.  
  40. /* shm keys and sizes */
  41. #define    RS4000_FBKEY    0x47425546
  42. #define    RS4000_FBSIZE    (2048 * 1024)
  43. #define RS4000_REGKEY    0x47524547
  44. #define    RS4000_REGSIZE    (2048 * 1024)
  45.  
  46. #ifdef STANDALONE
  47. /* RISC/os PROM mappings for VDR2 */
  48. #define    RS4000_FBREG_SA    0xe0200000    /* G300 */
  49. #define    RS4000_FBCUR_SA    0xe0300000    /* Bt431s */
  50. #define    RS4000_FBMEM_SA    0xe0800000    /* video RAM */
  51. #endif
  52.  
  53. #endif /* __DDX_MIPS4000_H */
  54.